local hx__guanxing_mu = fk.CreateSkill {
  name = "hx__guanxing_mu",
}

hx__guanxing_mu:addEffect(fk.RoundStart, {
  name = "hx__guanxing_mu",
  anim_type = "control",
  events = {fk.RoundStart},
  can_trigger = function(self, event, target, player, data)
    return  player:hasSkill(hx__guanxing_mu.name)
  end,
  on_use = function(self, event, target, player, data)
    local room = player.room
    local x = math.min(7 * room:getBanner("RoundCount"),21)
    room:askToGuanxing(player, {cards = room:getNCards(x)})
  end,
})

return hx__guanxing_mu